﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserNestedMasterPage.master" AutoEventWireup="true" CodeBehind="PersonInformationWebForm.aspx.cs" Inherits="JobbJaktWeb.PersonInformationWebForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   
        * Obligatoriska uppgifter<br />
        <br />
        <asp:Label ID="LabelSocialSecurityNumber" runat="server" Text="Personnr"></asp:Label>
      &nbsp;* (format ÅÅMMDD-XXXX)<br />
        <asp:TextBox ID="TextBoxSocialSecurityNumber" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorSocSecNr" runat="server" ControlToValidate="TextBoxSocialSecurityNumber" ErrorMessage="RequiredFieldValidator">Får inte vara tomt!</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidatorSocSecNr" runat="server" ControlToValidate="TextBoxSocialSecurityNumber" ErrorMessage="Har du fyllt i personnumret korrekt?" ValidationExpression="\d{6}-\d{4}"></asp:RegularExpressionValidator>
      <br />
   <asp:Label ID="LabelFirstName" runat="server" Text="Förnamn"></asp:Label>
        &nbsp;*<br />
        <asp:TextBox ID="TextBoxFirstName" runat="server" style="margin-left: 27px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorFirstName" runat="server" ControlToValidate="TextBoxFirstName" ErrorMessage="RequiredFieldValidator">Får inte vara tomt!</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidatorFirstName" runat="server" ControlToValidate="TextBoxFirstName" ErrorMessage="Första bokstaven ska vara en versal!" ValidationExpression="^[A-Ö]+[a-öA-Ö\s-]*$"></asp:RegularExpressionValidator>
     <br />
        <asp:Label ID="LabelLastName" runat="server" Text="Efternamn"></asp:Label>
     &nbsp;*<br />
        <asp:TextBox ID="TextBoxLastName" runat="server" style="margin-left: 27px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorLastName" runat="server" ControlToValidate="TextBoxLastName" ErrorMessage="RequiredFieldValidator">Får inte vara tomt!</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionLastName" runat="server" ControlToValidate="TextBoxLastName" ErrorMessage="Första bokstaven ska vara en versal!" ValidationExpression="^[A-Ö]+[a-öA-Ö\s-]*$"></asp:RegularExpressionValidator>
     <br />
        <asp:Label ID="LabelAddress" runat="server" Text="Adress"></asp:Label>
     &nbsp;*<br />
        <asp:TextBox ID="TextBoxAddress" runat="server" style="margin-left: 27px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorAddress" runat="server" ControlToValidate="TextBoxAddress" ErrorMessage="RequiredFieldValidator">Får inte vara tomt!</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidatorAddress" runat="server" ControlToValidate="TextBoxAddress" ErrorMessage="Första bokstaven ska vara en versal!" ValidationExpression="^[A-Ö]+[a-öA-Ö\s-\d]*$"></asp:RegularExpressionValidator>
      <br />
        <asp:Label ID="LabelZipCode" runat="server" Text="Postnr"></asp:Label>
     &nbsp;*<br />
        <asp:TextBox ID="TextBoxZipCode" runat="server" style="margin-left: 27px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorZipCode" runat="server" ControlToValidate="TextBoxZipCode" ErrorMessage="RequiredFieldValidator">Får inte vara tomt!</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidatorZipCOde" runat="server" ControlToValidate="TextBoxZipCode" ErrorMessage="Har du fyllt i postnumret rätt?" ValidationExpression="^[0-9]{3}\s?[0-9]{2}$"></asp:RegularExpressionValidator>
      <br />
        <asp:Label ID="LabelCity" runat="server" Text="Ort"></asp:Label>
      &nbsp;*<br />
        <asp:TextBox ID="TextBoxCity" runat="server" style="margin-left: 27px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorCity" runat="server" ControlToValidate="TextBoxCity" ErrorMessage="RequiredFieldValidator">Får inte vara tomt!</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidatorCity" runat="server" ControlToValidate="TextBoxCity" ErrorMessage="Första bokstaven ska vara en versal!" ValidationExpression="^[A-Ö]+[a-öA-Ö\s-]*$"></asp:RegularExpressionValidator>
      <br />
        <asp:Label ID="LabelPhoneNumber" runat="server" Text="Telefonnr"></asp:Label>
      &nbsp;*<br />
        <asp:TextBox ID="TextBoxPhoneNumber" runat="server" style="margin-left: 27px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorPhoneNumber" runat="server" ControlToValidate="TextBoxPhoneNumber" ErrorMessage="RequiredFieldValidator">Får inte vara tomt!</asp:RequiredFieldValidator>
      <br />
        <asp:Label ID="LabelEmail" runat="server" Text="E-postadress"></asp:Label>
      &nbsp;*<br />
        <asp:TextBox ID="TextBoxEmail" runat="server" style="margin-left: 27px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorEmail" runat="server" ControlToValidate="TextBoxEmail" ErrorMessage="RequiredFieldValidator">Får inte vara tomt!</asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidatorEmail" runat="server" ControlToValidate="TextBoxEmail" ErrorMessage="Har du fyllt i e-postadressen korrekt?" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
      <br />
        <asp:Label ID="LabelInterests" runat="server" Text="Intressen"></asp:Label>
      <br />
        <asp:TextBox ID="TextBoxInterests" runat="server" TextMode="MultiLine"></asp:TextBox>
      <br />
        <asp:Label ID="LabelAttributes" runat="server" Text="Egenskaper"></asp:Label>
      &nbsp;*<br />
        <asp:TextBox ID="TextBoxAttributes" runat="server" TextMode="MultiLine"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidatorAttributes" runat="server" ControlToValidate="TextBoxAttributes" ErrorMessage="RequiredFieldValidator">Får inte vara tomt!</asp:RequiredFieldValidator>
      <br />
          <asp:Label ID="LabelDriversLicense" runat="server" Text="Körkort"></asp:Label>
        &nbsp;*<asp:RadioButtonList ID="RadioButtonListDriversLicense" runat="server">
            <asp:ListItem Selected="True">Ja</asp:ListItem>
            <asp:ListItem Enabled="False">Nej</asp:ListItem>
        </asp:RadioButtonList>
      <br />
        <asp:Button ID="ButtonSave" runat="server" Text="Spara" OnClick="ButtonSave_Click" />
        
        <br />
        <br />
        <asp:Label ID="LabelConfirm" runat="server" Enabled="False" Text="Du har nu uppdaterat dina uppgifter" AssociatedControlID="ButtonSave" Visible="False"></asp:Label>
        
</asp:Content>
